<script type="text/javascript">
	function checkAccount(value) {
		printLog($('#currentBalance').numberbox('getValue'));
		
		if(Number($('#currentBalance').numberbox('getValue'))<Number(value)) {
			showMsg('金额不足');	
		}
		
	}
	
	$.extend($.fn.validatebox.defaults.rules,{
		checkStart:{
	    validator:function(value,param){     
	     return Number($('#currentBalance').numberbox('getValue'))>Number(value);
	    },
	    message:'金额不足，无法开庄'
	   }
	  });
</script>
<table cellpadding="5">
	<input name="memberId" type="hidden" value="${(playMemberItem.id)!}" />
	<tr>
		<td class="tbLabel">玩家名称:</td>
		<td>
			<input name="memberName" readonly="readonly" class="easyui-validatebox textbox" data-options="required: true" value="${(playMemberItem.name)!}"/>
		</td>
		<td class="tbLabel">当前余额:</td>
		<td >
			<input id="currentBalance" name="currentBalance" readonly="readonly"  class="easyui-numberbox" precision="0" data-options="required: true,width:157" value="${(playMemberItem.money)!'0'}"/>
		</td>
	</tr>
	<tr>
		<td>开庄日期:</td>
		<td>
			<input name="startTime" style="width:160px;" data-options="required:true" class="easyui-datetimebox"  value="${operationDate}"/>
		</td>
		<td>开庄金额:</td>
		<td>
			<input  name="account" style="width:158px;" class="easyui-numberbox"  precision="0" data-options="required: true,validType:'checkStart'" />
		</td>
	</tr>
	<tr>
		<td>经办人:</td>
		<td>
			<input name="operator"  class="easyui-validatebox textbox" readonly="readonly" data-options="required: true" value="${(user.name)!}"/>
		</td>
<!-- 		<td>充值后金额:</td> -->
<!-- 		<td> -->
<!-- 			<input id="afterInBalance" name="afterOperateBalance" style="width:158px;"  class="easyui-numberbox" readonly="readonly" precision="0"  /> -->
<!-- 		</td> -->
	</tr>
</table>
